package com.whcoding.druid.monitor.dao;

import com.whcoding.druid.monitor.pojo.OrmDeptVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Manager
 */
@Mapper
@Repository
public interface DeptDao {

	/**
	 * 根据ID 查询数据
	 * @param id
	 * @return
	 */
	OrmDeptVO queryDeptById(@Param("id") Long id);

	/**
	 * 查询全部数据
	 * @return
	 */
	List<OrmDeptVO> queryAllDept();

}
